package com.webchat.domain.vo.response;

import lombok.Data;

import java.text.SimpleDateFormat;
import java.util.Date;

/**
 * @author wangqi49@baidu.com
 * @date 2024/11/9 15:26
 */
@Data
public class UserWalletDetailResponseVO {

    private UserBaseResponseInfoVO user;
    private String userId;
    private Integer event;
    private String eventName;
    private Integer type;
    private String typeName;
    private String money;
    private Long time;


    public String getTimeStr() {
        SimpleDateFormat simpleDateFormat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
        return simpleDateFormat.format(new Date(time));
    }
}
